package com.magicrule.car.systemManage.model;

import java.util.List;

import org.springframework.data.annotation.Transient;

/**
 * 
 * @ClassName:  Resource   
 * @Description:TODO(资源，例如：菜单)   
 * @author: hebb
 * @date:   2018年12月8日 下午10:03:32   
 *     
 * @Copyright: 2018 www.magicruler.com Inc. All rights reserved. 
 * 注意：本内容仅限于魔尺信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
public class Resource extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键，长度20
	 */
	private Long id;
	
	/**
	 * 资源名称,长度50
	 */
	private String resourceName;
	
	/**
	 * 资源编码,长度50
	 */
	private String code;
	
	
	/**
	 * 资源url,长度100
	 */
	private String url;
	
	/**
	 * 序号,长度5
	 * 注意：这里的序号不要取名为sort，因为PageParam已经有一个sort
	 */
	private Integer sequence;
	
	/**
	 * 父id
	 */
	private Long parentId;
	
	/**
	 * 父名称,长度50
	 */
	private String parentName;
	
	/**
	 * 层级,长度2
	 */
	private Integer level;
	
	
	/**
	 * 起始时间
	 */
	@Transient
	private String startDate;
	
	/**
	 * 结束时间
	 */
	@Transient
	private String endDate;
	
	/**
	 * 等同于菜单名称，easyUI树形节点名称是text
	 */
	@Transient
	private String text;
	
	/**
	 * 子集
	 */
	@Transient
	private List<Resource> children;
	
	/**
	 * 菜单下的权限Id,接收前端页面传递过来的权限Id数据。例如：[1,3]
	 */
	@Transient
	private List<Long> permissionIdList;
	
	
	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public List<Resource> getChildren() {
		return children;
	}

	public void setChildren(List<Resource> children) {
		this.children = children;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public List<Long> getPermissionIdList() {
		return permissionIdList;
	}

	public void setPermissionIdList(List<Long> permissionIdList) {
		this.permissionIdList = permissionIdList;
	}
	
	
	
}
